package com.nineclock.api.document.controller;

import com.nineclock.common.entity.PageResult;
import com.nineclock.common.entity.Result;
import com.nineclock.document.dto.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import java.util.List;

@Api("文档管理")
public interface AppDocControllerApi {
    @ApiOperation("查询当前目录下的文件夹以及文件")
    public Result<DocumentDto> findFolderAndFile(Long parentFoldId);

    @ApiOperation("新建文件夹")
    public Result insertFolder(DocFolderDto docFolderDto);

    @ApiOperation("根据文档ID查询文档")
    public Result<DocFileDto> findDocFileById(Long id);

    @ApiOperation("分页展示文档的协作者ID以及协作者名字")
    public Result<PageResult<DocumentUserDTO>> findCollaborationsByPage(Long id, Long page, Long pageSize);

    @ApiOperation("根据文档id获取员工列表")
    public Result<List<DocUserCollaborationDTO>> findCompanyUserByDocId(Long docId);
}
